import type { IPageContentConfig } from '@/global/types'

const roleContentConfig: IPageContentConfig = {
  pageName: 'role',
  layout: {
    border: false,
    size: 'default'
    // stripe: true
  },
  batchBtns: [{ type: 'batchDelete', label: '删除角色' }],
  items: [
    { type: 'selection' },
    {
      prop: 'roleName',
      label: '角色名称',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'remark',
      label: '备注',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createBy',
      label: '创建人',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'updateBy',
      label: '修改人',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createTime',
      label: '创建时间',
      minWidth: '180',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'operation',
      label: '行为',
      minWidth: '120',
      align: 'center',
      // fixed: 'right',
      btns: [
        { type: 'edit', label: '编辑' },
        { type: 'delete', label: '删除' },
        { type: 'permissions', label: '分配权限' }
      ]
    }
  ]
}

export default roleContentConfig
